<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */
function getListOfSmiley($dir = "../libs/smiley/"){
    $smiley = array();
$handle = opendir($dir);
for ($i = 0; ($file = readdir($handle)) !== false; $i++){
        $smiley[$i] = $file;
}
closedir($handle);

return $smiley;
}

?>